module.exports = class extends think.Controller {
  async indexAction () {
    var data = this.post()
    let url = think.global.baseUrl + '/Customer_service/outlineMsg'
    try {
      var result = await think.http.post(url, data)
      this.json( result.data )
    } catch (e) {
      const loglist = this.mongoose('mongoose/loglist');
      data.message = e.message
      await new loglist({
        level: 'Error',
        name: '离线回复消息',
        type: '服务端',
        result: data
      }).save()
      this.ctx.fail( 1000, e.message )
    }
  }
}